package com.qf.fegin.api;

import com.baomidou.mybatisplus.plugins.Page;
import com.qf.entity.Goods;
import com.qf.resp.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("shop-goods")
public interface IGoodsService {

    @RequestMapping("/goodsController/getGoodsPage")
    public Page<Goods> getGoodsPage(@RequestBody Page<Goods>page);


    @RequestMapping("/goodsController/addGoods")
    public ResultEntity addGoods(@RequestBody Goods goods);

}
